package com.wantupai.translate.activity;

import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.wantupai.translate.R;
import com.wantupai.translate.base.BaseActivity;

import java.io.File;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author luxuchang
 * @date 2019/5/7 0007
 * @description
 */
public class CardActivity extends BaseActivity {
    @BindView(R.id.image_view)
    ImageView imageView;
    private String picPath;

    @Override
    public int getLayoutId() {
        return R.layout.activity_card;
    }

    @Override
    protected boolean translucentStatusBar() {
        return true;
    }

    @Override
    public void initViews() {
        getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
        setLeftRightText("重新拍摄", "编辑名片", "完成");
//        imageView.setRotation(-90);
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {
        picPath = getIntent().getStringExtra("picPath");
        Glide.with(this).load(Uri.fromFile(new File(picPath))).into(imageView);
    }

    @Override
    public void processClick(View v) {

    }
}
